function [hImgRead, hImgProc, ImgNum] = getImgSetting(dbname, ImgMean, bImResize, scale)

hImgRead = []; ImgNum = 0;

bUbuntu = isunix; % strcmp(filesep, '/');

switch dbname
    case 'LFW'
        if ~bUbuntu
            ImgPath = 'G:\Dataset\%FaceImages\LFW\lfw-deepfunneled';
        else
            ImgPath = '/home/mdc/curwork/Dataset/%FaceImages/lfw-deepfunneled';
        end
        [hImgRead, ImgNum] = LFW.get_hImgRead(ImgPath, dbname);
    case 'LFW6'
        if ~bUbuntu
            ImgPath = 'G:\Dataset\%FaceImages\LFW\lfw-deepfunneled-6';
        else
            ImgPath = '/home/mdc/curwork/Dataset/%FaceImages/lfw-deepfunneled-6';
        end
        [hImgRead, ImgNum] = LFW.get_hImgRead(ImgPath, dbname);
    case 'LFW6-cropped'
        if ~bUbuntu
            ImgPath = 'G:\Dataset\%FaceImages\LFW\lfw-deepfunneled-cropped-6';
        else
            ImgPath = '/home/mdc/curwork/Dataset/%FaceImages/lfw-deepfunneled-cropped-6';
        end
        [hImgRead, ImgNum] = LFW.get_hImgRead(ImgPath, dbname);
    case 'LFW6-cropped-gray'
        if ~bUbuntu
            ImgPath = 'G:\Dataset\%FaceImages\LFW\lfw-deepfunneled-cropped-gray-6';
        else
            ImgPath = '/home/mdc/curwork/Dataset/%FaceImages/lfw-deepfunneled-cropped-gray-6';
        end
        [hImgRead, ImgNum] = LFW.get_hImgRead(ImgPath, dbname);
    case 'AR'
        if ~bUbuntu
            ImgPath = 'G:\Dataset\%FaceImages\AR-bmp';
        else
            ImgPath = '/home/mdc/FaceReg/datas/AR-bmp';
        end
        [hImgRead, ImgNum] = AR.get_hImgRead(ImgPath);
end

%%
hImgProc = @(X, InputDim) Img.getROI(X, InputDim(1:3), bImResize, ImgMean, scale);

